{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "当前Tushare版本为： 1.2.12\n",
      "002241 的行情数据为:\n",
      "            date  open  close  high   low    volume    code\n",
      "141  2018-08-01  9.70   9.42  9.77  9.39  163617.0  002241\n",
      "142  2018-08-02  9.37   8.96  9.39  8.80  281673.0  002241\n",
      "143  2018-08-03  9.03   8.73  9.03  8.72  143977.0  002241\n",
      "144  2018-08-06  8.70   8.39  8.83  8.34  178779.0  002241\n",
      "145  2018-08-07  8.46   8.64  8.67  8.38  147798.0  002241\n",
      "146  2018-08-08  8.65   8.40  8.65  8.38  118325.0  002241\n",
      "147  2018-08-09  8.40   8.68  8.77  8.36  172437.0  002241\n",
      "148  2018-08-10  8.67   8.72  8.74  8.61  113611.0  002241\n",
      "149  2018-08-13  8.58   8.80  8.85  8.54  127820.0  002241\n",
      "150  2018-08-14  8.79   8.62  8.84  8.59  161701.0  002241\n",
      "151  2018-08-15  8.62   8.31  8.65  8.30  199160.0  002241\n",
      "152  2018-08-16  8.21   8.12  8.31  8.06  168213.0  002241\n"
     ]
    }
   ],
   "source": [
    "import tushare as ts\n",
    "print('当前Tushare版本为：',ts.__version__)\n",
    "\n",
    "stock_code = '002241'\n",
    "stock_array = ts.get_k_data(stock_code, start='2018-08-01')\n",
    "print(stock_code,'的行情数据为:\\n',stock_array)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
